home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Sunday Times: The Month 2003 December
/
The Sunday Times - The Month 2003-12.iso
/
mac
/
The Month DEC 03
/
engine
/
modules
/
print.swf
/
scripts
/
DefineSprite_9
/
frame_1
/
DoAction.as
Wrap
Text File
|
2003-11-04
|
833b
|
30 lines
function init()
{
num = _name.split("_")[2];
var nd = _parent._parent.nodeData.childNodes[num];
link = nd.attributes.link;
imageToPrint = nd.byName("image").getText();
titleFF.htmlText = nd.byName("title").getText();
titleFF.textColor = _parent._parent.DEFAULT_COLOR;
printFF.textColor = _parent._parent.SECTION_COLOR50;
imgToCheck = eval("_parent.mc_img_" + num);
trace("imgToCheck: " + imgToCheck);
intervalID = setInterval(checkLoad,300,this);
}
function checkLoad(mc)
{
if(imgToCheck._height > 0)
{
if(!positioned)
{
trace("imgToCheck._height = " + imgToCheck._height);
positioned = true;
_parent._parent.positionElements(mc);
clearInterval(intervalID);
}
}
}
printFF._visible = false;
init();
delete init;